package ooday05;

/**
 * 说明:
 *
 * @author: luohaowei
 * @date:2023/2/27
 **/
public class EnunDemo {
    public static void main(String[] args) {
        Seaon []seaons=Seaon.values();
        for(int i=0;i<seaons.length;i++){
            System.out.println(seaons[i]);
            System.out.println(seaons[i].getSeasonName());
            System.out.println(seaons[i].getSeasonDesc());
        }
        Seaon s=Seaon.WINIER;
        System.out.println(s.getSeasonName()+","+s.getSeasonDesc());
        switch (s){
            case SPRNG:
                System.out.println("天气"+s.getSeasonDesc()+",");
                break;
            case SUMMER:
                System.out.println("天气"+s.getSeasonDesc()+",");
                break;
            case AUTUMN:
                System.out.println("天气"+s.getSeasonDesc()+",");
                break;
            case WINIER:
                System.out.println("天气"+s.getSeasonDesc()+",");
                break;
        }
    }
}
